package com.party.core.dao.read.photo;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.photo.PhotosTag;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: yangshoukun
 * @Date: 2018/5/29 18:08
 */
@Repository
public interface PhotosTagReadDao extends BaseReadDao<PhotosTag> {
    List<PhotosTag> webList(@Param("param") Map<String, Object> param, @Param("photosTag") PhotosTag photosTag, Page page);

    PhotosTag findByName(PhotosTag tag);

    List<PhotosTag> listByImgId(@Param("photosTag") PhotosTag photosTag, @Param("imgId") String imgId);
}
